package com.metacube.questionbank.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.metacube.questionbank.dto.RecentQuestionDTO;

public class RecentQuestionMapper implements RowMapper<RecentQuestionDTO> {

	@Override
	public RecentQuestionDTO mapRow(ResultSet res, int line) throws SQLException {
		
		RecentQuestionExtractor recentquestionExtractor = new RecentQuestionExtractor();
		
		return recentquestionExtractor.extractData(res);

	}
}
